package cn.gson.springboot.model.dao.presaledao;

import cn.gson.springboot.model.pjos.Offer;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;

public interface OfferDao extends  CrudRepository<Offer, Integer>{
//    客户合并
    @Transactional
    @Modifying
    @Query(nativeQuery = true,value = "update offer set custom_id = ?1 where custom_id = ?2")
    public void updateCustomer(Integer daoId,Integer congId);
}
